<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 14318
  Date: 2021/12/6
  Time: 10:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
当前页面为home_menu.jsp<br>
以下为用户：${username}的陪玩申请请求<br>


${home_list}<br>
<table>

    <tr>
        <th>&nbsp;</th>
        <th>ID</th>
        <th>房主</th>
        <th>来访</th>
        <th>游戏类型</th>
        <th>游戏名称</th>
        <th>游戏状态('0'为待同意)</th>
    </tr>

    <c:forEach items="${home_list}" var="home_list">

        <tr>

            <td><input type="checkbox" name="ids" value="${home_list.id }"/></td>
            <td>${home_list.id}</td>

            <td>${home_list.homer}</td>

            <td>${home_list.visiter}</td>

            <td>${home_list.game_type}</td>
            <td>${home_list.game_name}</td>
            <td>${home_list.home_state}</td>

            <td><a href="${pageContext.request.contextPath}/home_menu_agree?id=${home_list.id}&username=${username}">同意</a></td>
            <td><a href="${pageContext.request.contextPath}/home_menu_refuse?id=${home_list.id}&username=${username}">拒绝</a></td>
                <%--                <td><a href="${pageContext.request.contextPath}/delete/${student.id }">删除</a></td> |--%>
                <%--                <td><a href="${pageContext.request.contextPath}/edit/${student.id }">修改</a></td>--%>
        </tr>

    </c:forEach>

</table>

</body>
</html>
